package com.example.demo001.constant;

/**
 * 返回码
 */
public class StatusCode {
    private StatusCode() {
    }
    public static final int OK=1000;//成功
    public static final int ERROR =2000;//失败

    //参数校验失败
    public static final int PARAM_ERROR = 2001;
    //用户名格式错误
    public static final int USERNAME_FORMAT_ERROR = 2002;
    //密码格式错误
    public static final int PASSWORD_FORMAT_ERROR = 2003;
    //邮箱格式错误
    public static final int EMAIL_FORMAT_ERROR = 2004;
    //邮箱已被注册
    public static final int EMAIL_ALREADY_EXISTS = 2005;
    //用户名已被注册
    public static final int USERNAME_ALREADY_EXISTS = 2006;
    //正常用户状态
    public static final int USER_STATUS_NORMAL = 2007;
    //邮箱不存在
    public static final int EMAIL_NOT_EXISTS = 2008;
    //用户名不存在
    public static final int USERNAME_NOT_EXISTS = 2009;
    //用户状态被锁定
    public static final int USER_STATUS_LOCKED_ERROR = 2010;
    //密码输入有误
    public static final int PASSWORD_ERROR = 2011;
    //原密码格式错误
    public static final int OLD_PASSWORD_FORMAT_ERROR = 2012;
    //新密码格式错误
    public static final int NEW_PASSWORD_FORMAT_ERROR = 2013;
    //原密码输入有误
    public static final Integer OLD_PASSWORD_ERROR = 2014;

    //验证码过期
    public static final Integer EMAIL_CODE_EXPIRED = 2015;
    //验证码错误
    public static final Integer CODE_ERROR = 2015;
    //token失效
    public static final Integer TOKEN_ERROR = 2016;

    //邮箱不一致
    public static final Integer EMAIL_NOT_SAME = 2017;
    //该在其他地方已经登录了
    public static final Integer USER_IS_LOGIN = 2018;
}